<%@ page import="edu.chiansoft.javabean.People" %>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
int[] intForArray={1,2,3,4,5,6,7};
People[] peopleForArray={new People(1,"xsan01",1),new People(2,"xsan02",2),new People(3,"xsan03",3)};
pageContext.setAttribute("key01", intForArray);
pageContext.setAttribute("key02", peopleForArray);
%>
<h2>域里的value值得类型是数组</h2>
<h3>获取数组某个元素的内容</h3>
${key01[1] }<br>
${key02[1] }<br>
数组里第三个元素的id值：${key02[2].id };name值：${key02[2].name };age值：${key02[2].age }。<br>



</body>
</html>